import basepath
import os
from common.mysql import get_mysql_data as get_data
from common.mysql_config import BJ_CONFIG

class config(BJ_CONFIG):
    db = 'hospital'


def d_print(datas):
    for item in datas:
        print(item)


sql = '''
    select * from ylfwtz

'''

os.system('cls')

datas = get_data(sql,config=config)
datas = [{key: f'{data.get(key)}' for key in data} for data in datas]

d_print(datas)